<?php

/**
 *  @FileComment            [文件注释内容模板]
 *  @ProjectName             项目名称：shopFrame
 *  @FileName                   文件名称：GoodsCategoryViewModel.class.php
 *  @Author                       yuerengui <596580041@qq.com>
 *  @Date                          2014-10-20 22:31:06
 *  *
 */
class GoodsCategoryViewModel extends ViewModel {

        public $table = 'brand';
        public $view = array(
            'category' => array('_type' => 'INNER'),
            'goods' => array('_type' => 'INNER', '_on' => '__goods__.category_cid=category.cid')
        );

        public function get_one_data($where) {
                return $this->where($where)->find();
        }

}
